//
//  theme.m
//  OC背景主题
//
//  Created by Hahn on 2018/11/1.
//  Copyright © 2018 今晚打老虎. All rights reserved.
//

#import "theme.h"

static theme *Theme;//单例

@implementation theme

#pragma mark - 单例初始化
+(theme *)shareTheme{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        Theme = [theme new];
    });
    return Theme;
}

#pragma mark - 重写方法
-(void)setAppColor:(NSInteger)appColor{
    _appColor = appColor;
    
    if (self.appColor == 0) {
        self.color = [UIColor whiteColor];
        self.color1 = [UIColor blackColor];
        self.color2 = [UIColor blackColor];
        self.color3 = [UIColor whiteColor];
        self.color4 = [UIColor redColor];
        self.color5 = [UIColor whiteColor];
    }else if (self.appColor == 1){
        self.color = [UIColor colorWithRed:0.06 green:0.08 blue:0.1 alpha:1];
        self.color1 = [UIColor greenColor];
        self.color2 = [UIColor whiteColor];
        self.color3 = [UIColor redColor];
        self.color4 = [UIColor whiteColor];
        self.color5 = [UIColor redColor];
    }
}


@end
